# -*- coding: utf-8 -*-
# !/usr/bin/env python3

"""
@Author   : Leonis.Li
@Email    : leonis.li.ext@zeiss.com
@Cellphone:
@Version  : 1.0
@License  : Apache Licence
@Script   : v1.py
@CreateAt : 2023/10/11 21:35
@UpdateAt : 2023/10/11 21:35
"""


from flask import Blueprint, jsonify


# Create blueprint template
ocr_v1_bp = Blueprint("ocr_api_v1", __name__, url_prefix='/api/v1/ocr')


@ocr_v1_bp.route("/", methods=["GET"])
def index():

    data = {
        "status": 200,
        "message": "OCR API(V1.0) text recognition service is running.",
    }

    return jsonify(data)
